package com.tencent.hummingbird.portal.service;

import com.github.pagehelper.PageInfo;
import com.tencent.hummingbird.portal.pojo.Question;
import com.tencent.hummingbird.portal.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencent.hummingbird.portal.vo.*;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yxb
 * @since 2024-01-10
 */
public interface IUserService extends IService<User> {
    UserDetails getUserDetails(String username);
    void registerStudent(RegisterVO registerVO);
    List<User> getTeachers();
    //nickname--user
    Map<String,User> getTeacherMap();
    UserVO getCurrentUserVo(String username);
    Integer getCollects(Integer id);
    Integer resetPassword(String username, ReSetVO reSetVO);
    UserInfoVO getUserInfoVoByUserName(String username);
    void UpdateUserInfo(String username,UserInfoVO userInfoVO);
}
